package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "talk_records_login",comment = "聊天对话记录（登录日志）")
public class TalkRecordsLogin {
    @AcColumn(name = "id",comment = "登录ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "record_id",defaultValue = "0",comment = "消息记录ID",type = ColumnTypeEnums.INT)
    private Integer record_id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "platform", defaultValue = "", comment = "登录平台[h5,ios,windows,mac,web]", type = ColumnTypeEnums.VARCHAR,length = 20)
    private String platform;

    @AcColumn(name = "ip", defaultValue = "", comment = "IP地址", type = ColumnTypeEnums.VARCHAR,length = 20)
    private String ip;

    @AcColumn(name = "agent", defaultValue = "", comment = "设备信息", type = ColumnTypeEnums.VARCHAR,length = 300)
    private String agent;

    @AcColumn(name = "address", defaultValue = "", comment = "IP所在地", type = ColumnTypeEnums.VARCHAR,length = 100)
    private String address;

    @AcColumn(name = "reason", defaultValue = "", comment = "登录异常提示", type = ColumnTypeEnums.VARCHAR,length = 100)
    private String reason;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;
}
